package com.tmjx.web;

import com.tmjx.entitys.dto.LoginDTO;
import com.tmjx.resp.VfResult;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 33117
 * @version 1.0
 * @data 2025/8/19 17:03
 */
@RestController
@RequestMapping("/api/auth")
public interface ILoginWeb {

    /**
     * 登录
     *
     * @param loginDTO
     * @return
     */
    @ApiOperation(value = "登录", notes = "登录", produces = "application/json")
    @ApiResponses({@ApiResponse(code = 200, message = "登录成功")})
    @RequestMapping(value = "/a", method = RequestMethod.POST)
    VfResult login(@RequestBody LoginDTO loginDTO);

    /**
     * 退出
     * @param
     * @return
     * */
    @ApiOperation(value = "退出", notes = "退出", produces = "application/json")
    @ApiResponses({@ApiResponse(code = 200, message = "退出成功")})
    @RequestMapping(value = "/logout", method = RequestMethod.POST)
    VfResult logout();

}
